package com.dingyx.ps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.dingyx.ps.model.entity.AccountBillMasterDTO;
import com.dingyx.ps.model.po.AccountBillMasterListPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @description 合同表
 * @author zhangyang@zencor.cn
 * @date 2020-11-17
 */
@Mapper
public interface AccountBillMasterMapper extends BaseMapper<AccountBillMasterDTO> {

    /**
     * 分页查询任务列表【商户端&平台端】
     * @param page
     * @param po
     * @return
     */
    IPage<AccountBillMasterDTO> selectBillMasterPageList(IPage<AccountBillMasterDTO> page, @Param("po") AccountBillMasterListPO po);

    Integer insertReturnId(AccountBillMasterDTO masterDTO);

    /**
    * @Description 查询已结算费用总额度
    * @Author  zhangyiming
    * @Date   2021/4/7 16:44
    * @Param  enterpriseId 商户id
    * @Return  
    * @Exception  
    */
    BigDecimal findInvoiceAllPrice(Integer enterpriseId);
}

